home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / powervww / pvcolors.cpp < prev    next >
C/C++ Source or Header  |  1998-01-05  |  2KB  |  42 lines

  1. //  ____________________________________________________
  2. // |                                                    |
  3. // |  Project:     POWER VIEW INTERFACE                 |
  4. // |  File:        PVCOLORS.CPP                         |
  5. // |  Compiler:    WPP386 (10.6)                        |
  6. // |                                                    |
  7. // |  Subject:     Colors management                    |
  8. // |                                                    |
  9. // |  Author:      Emil Dotchevski                      |
  10. // |____________________________________________________|
  11. //
  12. // E-mail: zajo@geocities.com
  13. // URL:    http://www.geocities.com/SiliconValley/Bay/3577
  14.  
  15. #define uses_string
  16. #define uses_colors
  17. #define uses_system
  18.  
  19. #define DECLARE_PVCOLORS
  20. #include "PVuses.h"
  21. #undef DECLARE_PVCOLORS
  22.  
  23. void __init_colors( void )
  24. {
  25.   if( scr_bw )
  26.   {
  27.     memcpy( &pal_desktop, &bw_desktop, sizeof( pal_desktop ) );
  28.     memcpy( &pal_menus, &bw_menus, sizeof( pal_menus ) );
  29.     memcpy( &pal_windows, &bw_windows, sizeof( pal_windows ) );
  30.     memcpy( &pal_buttons, &bw_buttons, sizeof( pal_buttons ) );
  31.     memcpy( &pal_drag_drop, &bw_drag_drop, sizeof( pal_drag_drop ) );
  32.   }
  33.   else
  34.   {
  35.     memcpy( &pal_desktop, &color_desktop, sizeof( pal_desktop ) );
  36.     memcpy( &pal_menus, &color_menus, sizeof( pal_menus ) );
  37.     memcpy( &pal_windows, &color_windows, sizeof( pal_windows ) );
  38.     memcpy( &pal_buttons, &color_buttons, sizeof( pal_buttons ) );
  39.     memcpy( &pal_drag_drop, &color_drag_drop, sizeof( pal_drag_drop ) );
  40.   }
  41. }
  42.